# $NetBSD: Makefile,v 1.6 2012/11/23 22:34:05 othyro Exp $
#

DISTNAME=		T-COFFEE_distribution
PKGNAME=		t-coffee-1.37
CATEGORIES=		biology
MASTER_SITES=		http://igs-server.cnrs-mrs.fr/~cnotred/Packages/

MAINTAINER=		dprice@cs.nmsu.edu
HOMEPAGE=		http://igs-server.cnrs-mrs.fr/~cnotred/Packages/
COMMENT=		Multiple Sequence Alignment Package

DEPENDS+=		clustalw>=1.8:../../biology/clustalw

WRKSRC=		${WRKDIR}/T-COFFEE_distribution_Version_1.37/t_coffee_source

MESSAGE_SUBST+=		PREFIX=${PREFIX}
MAKE_FILE=		makefile

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/tcoffee
.for HTML in t_coffee.html t_coffee4html.cgi t_coffee_doc.html
	${INSTALL_DATA} ${WRKSRC}/../html/${HTML} ${DESTDIR}${PREFIX}/share/doc/html/tcoffee
.endfor
	${INSTALL_PROGRAM} ${WRKSRC}/../bin/t_coffee ${DESTDIR}${PREFIX}/bin

	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/tcoffee
.for DOC in README4T-COFFEE t_coffee_doc.doc t_coffee_doc.pdf \
		t_coffee.pdf t_coffee_doc.html t_coffee_doc.ps
	${INSTALL_DATA} ${WRKSRC}/../doc/${DOC} ${DESTDIR}${PREFIX}/share/doc/tcoffee
.endfor

.include "../../mk/bsd.pkg.mk"
